Vue.mixin({
    data: function () {
        return {
            imageForm: {
                pageSize: 10,
                pageNumber: 1,
                totalRow: 0,
            },
            imageList: [],
        }
    },
    methods: {
        changeToImage() {
            this.getImageData();
        },
        getImageData() {
            axios.post("/image/list", this.imageForm).then(function (response) {
                if (response.data.code != 200) {
                    vm.$message.error(response.data.mess);
                } else {
                    vm.imageForm.pageNumber = response.data.data.pageNumber;
                    vm.imageForm.totalRow = response.data.data.totalRow;
                    vm.imageList = response.data.data.list;
                }
            });
        }
    },
    watch: {},
    mounted: function () {
    }
})